.chat-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    
    &__header {
        padding: 16px 20px;
        border-bottom: 1px solid #e5e7eb;
        background-color: #fafafa;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    &__title {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        color: #111827;
    }
    
    &__meta {
        font-size: 12px;
        color: #6b7280;
    }
    
    &__messages {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    &__empty {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        text-align: center;
        color: #6b7280;
        
        &-icon {
            font-size: 64px;
            margin-bottom: 24px;
            opacity: 0.6;
        }
        
        h3 {
            margin: 0 0 8px 0;
            font-size: 24px;
            font-weight: 600;
            color: #111827;
        }
        
        p {
            margin: 0 0 32px 0;
            font-size: 16px;
        }
    }
    
    &__features {
        display: flex;
        gap: 24px;
        margin-top: 32px;
    }
    
    &__feature {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 16px;
        background-color: #f9fafb;
        border-radius: 12px;
        min-width: 120px;
        
        &-icon {
            font-size: 24px;
        }
        
        span:last-child {
            font-size: 14px;
            font-weight: 500;
            color: #374151;
        }
    }
    
    &__welcome {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        text-align: center;
        color: #6b7280;
        
        &-icon {
            font-size: 48px;
            margin-bottom: 16px;
        }
        
        p {
            margin: 4px 0;
            
            &:first-of-type {
                font-size: 18px;
                font-weight: 500;
                color: #374151;
            }
        }
        
        &-tip {
            font-size: 14px;
            opacity: 0.8;
        }
    }
    
    &__input-area {
        padding: 16px 20px;
        border-top: 1px solid #e5e7eb;
        background-color: #fafafa;
    }
    
    &__form {
        width: 100%;
    }
    
    &__input-wrapper {
        display: flex;
        align-items: flex-end;
        gap: 12px;
        background-color: white;
        border: 1px solid #d1d5db;
        border-radius: 12px;
        padding: 12px 16px;
        transition: all 0.2s ease;
        
        &:focus-within {
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }
    }
    
    &__input {
        flex: 1;
        border: none;
        outline: none;
        resize: none;
        font-size: 14px;
        line-height: 1.5;
        color: #111827;
        background: transparent;
        min-height: 20px;
        max-height: 120px;
        
        &::placeholder {
            color: #9ca3af;
        }
    }
    
    &__send-btn {
        width: 36px;
        height: 36px;
        border: none;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        flex-shrink: 0;
        
        &:hover:not(:disabled) {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }
        
        &:active:not(:disabled) {
            transform: translateY(0);
        }
        
        &:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            background: #9ca3af;
        }
    }
}

// 待确认消息操作区域
.chat-content__pending-actions {
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
    background-color: #fef3c7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    &-info {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    &-count {
        font-size: 14px;
        font-weight: 500;
        color: #92400e;
    }
    
    &-buttons {
        display: flex;
        gap: 8px;
    }
}

.chat-content__pending-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    
    &--accept-all {
        background-color: #10b981;
        color: white;
        
        &:hover {
            background-color: #059669;
        }
    }
    
    &--reject-all {
        background-color: #ef4444;
        color: white;
        
        &:hover {
            background-color: #dc2626;
        }
    }
}

// 加载动画
.chat-content__loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chat-message {
    display: flex;
    gap: 12px;
    
    &--user {
        flex-direction: row-reverse;
        
        .chat-message__content {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 16px 16px 4px 16px;
        }
        
        .chat-message__header {
            justify-content: flex-end;
        }
    }
    
    &--assistant {
        .chat-message__content {
            background-color: #f3f4f6;
            color: #111827;
            border-radius: 16px 16px 16px 4px;
        }
    }
    
    &--pending {
        .chat-message__content {
            background-color: #fef3c7;
            color: #92400e;
            border: 2px solid #fbbf24;
            border-radius: 16px;
        }
    }
    
    &__avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    &__user-avatar {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        font-size: 16px;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
    
    &__assistant-avatar {
        background-color: #e5e7eb;
        color: #6b7280;
        font-size: 16px;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
    
    &__content {
        max-width: 70%;
        padding: 12px 16px;
        word-wrap: break-word;
    }
    
    &__header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 4px;
        font-size: 12px;
        opacity: 0.8;
    }
    
    &__sender {
        font-weight: 500;
    }
    
    &__time {
        opacity: 0.7;
    }
    
    &__text {
        line-height: 1.5;
        white-space: pre-wrap;
    }
    
    &__actions {
        display: flex;
        gap: 8px;
        margin-top: 12px;
    }
    
    &__action-btn {
        padding: 6px 12px;
        border: none;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        
        &--accept {
            background-color: #10b981;
            color: white;
            
            &:hover {
                background-color: #059669;
            }
        }
        
        &--reject {
            background-color: #ef4444;
            color: white;
            
            &:hover {
                background-color: #dc2626;
            }
        }
    }
}

// 滚动条样式
.chat-content__messages {
    &::-webkit-scrollbar {
        width: 6px;
    }
    
    &::-webkit-scrollbar-track {
        background: transparent;
    }
    
    &::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 3px;
        
        &:hover {
            background: #9ca3af;
        }
    }
}

// 响应式设计
@media (max-width: 768px) {
    .chat-content {
        &__messages {
            padding: 16px;
        }
        
        &__input-area {
            padding: 12px 16px;
        }
    }
    
    .chat-message {
        &__content {
            max-width: 85%;
        }
    }
}